﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Coway.Ordering.Orders
{
    public class CreateUpdateOrderDto
    {
        /// <summary>
        /// 订单号
        /// </summary>
        [StringLength(50)]
        public string OrderNo { get; set; }

        /// <summary>
        /// 推荐人号
        /// </summary>
        public string ReferralNo { get; set; }

        /// <summary>
        /// 购买方式：买断、租赁
        /// </summary>
        [Required]
        public string BuyWay { get; set; }

        public string SellerName { get; set; }

        public string SellerCode { get; set; }

        public string SellerPhone { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

        [DisplayName("OrderItem")]
        public List<CreateOrderItemDto> OrderItems { get; set; }
    }
}
